package com.sjft.cloud.commons.support.datamodel.core.prop;

import com.sjft.cloud.commons.support.datamodel.core.rule.CheckboxRule;
import com.sjft.cloud.commons.support.datamodel.core.value.CheckboxValue;
import com.sjft.cloud.commons.support.datamodel.enums.ModelFieldTypeEnum;
import com.sjft.cloud.commons.support.datamodel.enums.MysqlColumnTypeEnum;
import com.sjft.cloud.commons.support.datamodel.core.ModelFieldProp;
import lombok.Getter;
import lombok.Setter;

/**
 * CheckboxType
 *
 * @author Jin
 */
@Getter
@Setter
public class CheckboxProp implements ModelFieldProp<CheckboxRule, CheckboxValue> {
    private String name = ModelFieldTypeEnum.CHECKBOX_NAME;
    private String columnType = MysqlColumnTypeEnum.VARCHAR.toString();
    private Integer length = 64;
    private Boolean autoIncrement = false;
    private String defaultValue = "";
    private Boolean notNull = false;
    private Boolean primaryKey = false;
    private CheckboxRule rule = new CheckboxRule();
    private CheckboxValue value = new CheckboxValue();
}
